package com.seelyn.rhea.mvc.render.provider;

import com.seelyn.rhea.mvc.render.AbstractView;
import com.seelyn.rhea.mvc.render.Render;

/**
 * @author linfeng
 * @since 2016/1/20
 */
@SuppressWarnings("unchecked")
public class JsonView extends AbstractView<JsonView> {
    private static final long serialVersionUID = 4904636717459229999L;
    private final Object content;

    public JsonView(Object content) {
        super(JSON_CONTENT_TYPE);
        this.content = content;
    }
    public Object getContent() {
        return content;
    }

    @Override
    public Render<JsonView> getRender() {
        return new JsonRender();
    }
}
